package com.zt.ztyh.service.open;

import com.zt.ztyh.entity.ZtyhRecording;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Java之父卫相阳
 * @date 2024/4/15 13:34
 * OverSion04
 */
@FeignClient(name = "recording-user", path = "/ztyh/recording",contextId="user")
public interface RecordService {
    /**
     * 添加流水
     */
    @PostMapping("/addRecording")
    public boolean addRecording(@RequestBody ZtyhRecording ztyhRecording);
    @GetMapping("/listRecording")
    List<ZtyhRecording> getUserListTime(@RequestParam("userId") Long userId,
                                        @RequestParam("openType") int openType
    );
}
